package zarzadzaniepracownikami;

import java.util.Date;
import java.util.Vector;

public class ServerConnector {

	public Boolean AddWorker(Worker newWorker)
	{
		return true;
	}
	
	public Boolean RemoveWorker(Long workerId)
	{
		return true;
	}
	
	public float GetSallary(long workerId, String position)
	{
		return 1222;
	}
	
	public boolean UpdatePossition(Worker worker)
	{
		return true;
	}
	
	public boolean UpdateProfile(Worker worker){
		
		return true;
	}
	
	@SuppressWarnings("deprecation")
	public Vector<Worker> GetListOfWorkers(){
		Date date = new Date(99,05,23);
		Date date2 = new Date(89,10,28);
		Worker worker = new Worker("Name","Surname",1,"Kasjer",date,"785562189");
		Worker worker_2 = new Worker("Name2","Surname2",2,"Dyrektor",date2,"785562189");
		
		Vector<Worker> workers = new Vector<Worker>();
		workers.add(worker);
		workers.add(worker_2);
		return workers;
	}
	
	public Vector<String> GetListOfPossition()
	{
		Vector<String> positions = new Vector<String>();
		positions.add("Kasjer");
		positions.add("Doradca");
		positions.add("Obsluga VIP");
		positions.add("Naczelnik");
		positions.add("Dyrektor");
		
		return positions;
	}
}
